home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / popup.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-10-16  |  901 b   |  49 lines

  1. unit PopUp;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, ComCtrls, ExtCtrls;
  8.  
  9. type
  10.   TFormPopUp = class(TForm)
  11.     RichEditHelp: TRichEdit;
  12.     ButtonExit: TButton;
  13.     procedure ButtonExitClick(Sender: TObject);
  14.     procedure FormActivate(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     PopupRTFFileName: String;
  19.     procedure SetFileName (FileName: String);
  20.     { Public declarations }
  21.  
  22.   end;
  23.  
  24. var
  25.   FormPopUp: TFormPopUp;
  26.  
  27. implementation
  28.  
  29. uses Preview;
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TFormPopUp.ButtonExitClick(Sender: TObject);
  34. begin
  35.    close;
  36. end;
  37.  
  38. procedure TFormPopUp.SetFileName (FileName: String);
  39. begin 
  40.     PopupRTFFileName := FileName;
  41. end;
  42.  
  43. procedure TFormPopUp.FormActivate(Sender: TObject);
  44. begin
  45.     RichEditHelp.Lines.LoadFromFile(PopupRTFFileName);
  46. end;
  47.  
  48. end.
  49.